﻿using System.Data.Entity.ModelConfiguration;
using ZFine.Domain.Entity;

namespace Logic.Map.Project
{
        public class ChargingStandardMap : EntityTypeConfiguration<ChargingStandardEntity>
        {
            public ChargingStandardMap()
            {
                this.ToTable("ChargingStandards");
                this.HasKey(t => t.F_Id);
                Property(p => p.F_Id).HasMaxLength(50);
                Property(p => p.F_CreatorUserId).HasMaxLength(50);
                Property(p => p.F_LastModifyUserId).HasMaxLength(50);
                Property(p => p.F_DeleteUserId).HasMaxLength(50);
                Property(p => p.Name).HasMaxLength(50);
                Property(p => p.Amount).HasPrecision(18, 2);


                // Property(x => x.F_thispric).HasPrecision(18,2)
            }
        }

}
